Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docks disappearing in NAV when >100% UI scale #2898

Merged
merged 2 commits into from
Feb 11, 2025

Conversation

ColonelThirtyTwo
Copy link
Contributor

Fixes #2775

About the PR

The occlusion bounds in the dock drawing code didn't take into account UI scale, so docks passed a certain point would disappear. This patch fixes the issue.

Why / Balance

Not being able to see docks too far to the right/bottom of the view is annoying. So is playing at 100% UI scale on a high-DPI display.

How to test

  1. Set your UI scale to >100% - the biggest you can reasonably use, the easier the issue will be to see.
  2. Pilot and position a ship so that a docking port is near the bottom right of the NAV display, and observe that it no longer disappears.

Media

Before:

Screenshot_20250210_174642

After:

Screenshot_20250210_174544

Requirements

Breaking changes

Changelog
🆑

  • fix: Fix docks disappearing on the NAV console at >100% UI scale

The occlusion bounds in the dock drawing code didn't take into account
UI scale, so docks passed a certain point would disappear.

Fixes new-frontiers-14#2775
Copy link
Contributor

@whatston3 whatston3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works.

@dvir001 dvir001 merged commit a8dcbb4 into new-frontiers-14:master Feb 11, 2025
12 checks passed
FrontierATC added a commit that referenced this pull request Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NavScreen: Docks and Docking Labels only drawn when zoomed out.
3 participants